package com.enba.boot.security.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/** Redis缓存配置 */
@ConfigurationProperties(prefix = "security.redis")
@Data
public class SecurityRedisKeyProperties {

  /** 用户缓存KEY */
  private String userKey = "security:user:";

  /** 角色缓存KEY */
  private String roleKey = "security:role:";

  /** 权限缓存KEY */
  private String permissionKey = "security:permission:";

  /** 过期时间:单位秒 */
  private Long expire = 12 * 60 * 60L;
}
